package com.soft.sitegenerator.form;

import java.util.Collection;
import java.util.Date;
import java.util.Set;
import org.apache.struts.action.ActionForm;
import com.soft.sitegenerator.Component;
import com.soft.sitegenerator.DataBaseComponent;
import com.soft.sitegenerator.business.hibernate.NewsGroup;
import com.soft.sitegenerator.business.hibernate.User;

public class NewsGroupEditForm extends ActionForm{
	
	private static final long serialVersionUID = 1L;	
	private Collection usuarios; 
	private Long idUser = null;
		
    private Component component=new DataBaseComponent();
    private NewsGroup newsGroup = (NewsGroup) component.getBean("newsgroupsHib");
	
	public NewsGroup getNewsGroup() {
		return newsGroup;
	}

	public void setNewsGroup(NewsGroup newsGroup) {
		this.newsGroup = newsGroup;
	}

	public boolean equals(Object arg0) {
		return newsGroup.equals(arg0);
	}

	public Date getCreationDate() {
		return newsGroup.getCreationDate();
	}

	public void setCreationDate(Date creationDate) {
		newsGroup.setCreationDate(creationDate);
	}

	public String getDescription() {
		return newsGroup.getDescription();
	}

	public void setDescription(String description) {
		newsGroup.setDescription(description);
	}

	public Long getId() {
		return newsGroup.getId();
	}

	public void setId(Long id) {
		newsGroup.setId(id);
	}

	public String getName() {
		return newsGroup.getName();
	}

	public void setName(String name) {
		newsGroup.setName(name);
	}
	
	public User getUser(){
		return newsGroup.getUser();		
	}
	
	public void setUser (User user){
		newsGroup.setUser(user);
	}
	
	public Set getUsers(){
		return newsGroup.getUsers();		
	}
	
	public void setUsers(Set users){
		newsGroup.setUsers(users);
	}

	public Collection getUsuarios() {
		return usuarios;
	}

	public void setUsuarios(Collection usuarios) {
		this.usuarios = usuarios;
	}

	public Long getIdUser() {
		return idUser;
	}

	public void setIdUser(Long idUser) {
		this.idUser = idUser;
	}

	
	}